<?php 

include 'D:/dingjiangbbs/common/home.php';

//屏蔽notice错误
error_reporting(E_ALL ^ E_NOTICE);


//var_dump($_POST);

//判断id数组是否传递成功
if (empty($_POST['$arr_re'])) {

	exit('当前未勾选内容,请勾选选项');
}

//接收id数组
$arr_re = $_POST['$arr_re'];
//var_dump($arr_re);

//分割数组成字符串
$id = implode(',',$arr_re);
//var_dump($id);

//修改数据库isdel字段,隐藏记录
$table  = DB_TABLE_DETAIL;
$data   = [
	'isdel' => 1,
];

$where  = "id in ($id)";
$res    = update($link,$table,$data,$where);
//var_dump($res);

//输出,跳转页面
if (!$res) {

	exit('<a href="'.WEB_SITE.'admin_cg.php?bighead=4&cg_number=9">回收失败,返回继续操作</a>');
}

echo '<a href="'.WEB_SITE.'admin_cg.php?bighead=4&cg_number=9">回收成功,返回</a>';
mysqli_close($link);